<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="computerRoomList" checkbox="false" fitColumns="true" title="消费设置" actionUrl="computerRoomController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人名称"  field="createName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人登录名称"  field="createBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人名称"  field="updateName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人登录名称"  field="updateBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新日期"  field="updateDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="机房归属楼栋"  field="buildingNo"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="机房编号"  field="roomNo"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="座位行数"  field="rowsCount"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="座位列数"  field="rowsCols"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="负责人"  field="charger"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="负责人手机"  field="cellphone"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="机房用途"  field="useInfo"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="备注"  field="remark"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="开放开始"  field="openTimeBegin" queryMode="single"  width="100" formatter="yyyy-MM-dd hh:mm"></t:dgCol>
   <t:dgCol title="开放时间"  field="openTimeEnd" queryMode="single"  width="100" formatter="yyyy-MM-dd hh:mm"></t:dgCol>
   <t:dgCol title="结束时间"  field="openLocation" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="150"></t:dgCol>
   <t:dgFunOpt title="设置消费" funname="setCost(id)"></t:dgFunOpt> 
<%--    <t:dgToolBar title="查看" icon="icon-search" url="computerRoomController.do?goUpdate" funname="detail"></t:dgToolBar> --%>
  </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/mengtian_tech/device_mgr/room/computerRoomList.js"></script>		
 <script type="text/javascript">

	function setCost(id){
		  var addurl = 'computerRoomController.do?setCostPage&id='+id;
		  $.dialog({
			  	id:'xxx',
				content: 'url:'+addurl,
				lock : true,
				zIndex: 1000, 
				width:370,
				height:150,
				title:'消费设置', 
				opacity : 0.3,
				cache:false,
			    ok: function(){
			    	iframe = this.iframe.contentWindow;
			    	$('#btn_sub', iframe.document).click(); 
					return false;
			    },
			    cancelVal: '关闭',
			    cancel: true /*为true等价于function(){}*/
			});
	
	}
 </script>